<%--
  Created by IntelliJ IDEA.
  User: sun
  Date: 2022/2/11
  Time: 9:43
  To change this template use File | Settings | File Templates.
--%>
<%@ page isELIgnored="false" contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>

<%--
    application/x-www-form-urlencoded：表单 默认提交数据类型，直接提交简单数据类型
    multipart/form-data: 可以提交文件和简单数据类型
--%>
<form action="/upload" method="post" enctype="multipart/form-data">
    <input type="text" name="username" value="zhangsan">
    <input type="file" name="file">

    <input type="submit" value="上传文件">

</form>


<a href="/download?imgName=15be1d21-c85e-4ce3-b980-5933c909dff30.jpg">下载图片</a>
</body>
</html>
